/****** Object:  Stored Procedure [dbo].spChiTietPhieuXuatUpdate Script Date: 6/23/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spChiTietPhieuXuatUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spChiTietPhieuXuatUpdate]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		23/06/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spChiTietPhieuXuatUpdate]
(
	@MaCTPX nvarchar(12),
	@DonGia int,
	@SoLuong int,
	@GiaTrungThau int,
	@SoPX nvarchar(14),
	@MaLuuKho int
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_ChiTietPhieuXuat]
SET [DonGia] = @DonGia,
	[SoLuong] = @SoLuong,
	[GiaTrungThau] = @GiaTrungThau,
	[SoPX] = @SoPX,
	MaLuuKho = @MaLuuKho
WHERE	[MaCTPX] = @MaCTPX
GO

--GRANT EXECUTE ON [dbo].[spChiTietPhieuXuatUpdate] TO [sa]
--GO
